Transport control word architecture for physical port mirroring

ABSTRACT

Aspects include receiving, at an input/output (I/O) processor, a transport control word (TCW) that includes an instruction to perform physical port mirroring. It is identified, by the I/O processor, a first port to be mirrored and a second port to perform the mirroring. The second port is a physical port on a host bus adapter (HBA). In response to outbound data being sent to the first port for transmission to a first target device and to the instruction specifying outbound port mirroring, the I/O processor sends a copy of the outbound data to a second target device via the second port. In response to receiving inbound data at the first port and to the instruction specifying inbound port mirroring, a copy of the inbound data is transmitted to the second target device via the second port.

BACKGROUND

The present invention relates generally to facilitating input/output(I/O) processing within a computing environment, and more specifically,to providing a transport control word (TCW) architecture for physicalport mirroring.

I/O operations are used to transfer data between memory and I/O devicesof an I/O processing system. Data can be written from memory to one ormore I/O devices, and data can be read from one or more I/O devices tomemory by executing I/O operations.

To facilitate processing of I/O operations, an I/O subsystem of the I/Oprocessing system is often employed. The I/O subsystem is coupled tomain memory and the I/O devices of the I/O processing system and directsthe flow of information between memory and the I/O devices. One exampleof an I/O subsystem is a channel subsystem that used uses channel pathsas communications media. Each channel path includes a channel coupled toa control unit, the control unit being further coupled to one or moreI/O devices.

A channel subsystem and I/O device may operate in a transport mode thatsupports the transfer of one or more command control blocks to transferdata between the I/O devices and memory. A TCW can be used to specifyone or more I/O commands to be executed. For commands initiating certainI/O operations, the TCW can designate memory areas associated with theoperation as well as an action to be taken when a transfer to or from amemory area is completed.

SUMMARY

Embodiments of the present invention are directed to a transport controlword (TCW) architecture for physical port mirroring. A non-limitingexample computer-implemented method includes receiving, at aninput/output (I/O) processor, a transport control word (TCW) thatincludes an instruction to perform physical port mirroring. It isidentified, by the I/O processor, a first port to be mirrored and asecond port to perform the mirroring. The second port is a physical porton a host bus adapter (HBA). In response to outbound data being sent tothe first port for transmission to a first target device and to theinstruction specifying outbound port mirroring, the I/O processor sendsa copy of the outbound data to a second target device via the secondport. In response to receiving inbound data at the first port and to theinstruction specifying inbound port mirroring, a copy of the inbounddata is transmitted to the second target device via the second port.

Other embodiments of the present invention implement features of theabove-described method in computer systems and computer programproducts.

Additional technical features and benefits are realized through thetechniques of the present invention. Embodiments and aspects of theinvention are described in detail herein and are considered a part ofthe claimed subject matter. For a better understanding, refer to thedetailed description and to the drawings.

BRIEF DESCRIPTION OF THE DRAWINGS

The specifics of the exclusive rights described herein are particularlypointed out and distinctly claimed in the claims at the conclusion ofthe specification. The foregoing and other features and advantages ofthe embodiments of the invention are apparent from the followingdetailed description taken in conjunction with the accompanying drawingsin which:

FIG. 1 depicts a block diagram of a computing environment for performingport mirroring according to one or more embodiments of the presentinvention;

FIG. 2 depicts a block diagram of a transport control word (TCW) forperforming port mirroring according to one or more embodiments of thepresent invention;

FIG. 3 depicts contents of a TCW for performing port mirroring accordingto one or more embodiments of the present invention;

FIG. 4 depicts an outbound input/output (I/O) operation according to oneor more embodiments of the present invention;

FIG. 5 depicts an outbound I/O operation that provides mirroring to aphysical port according to one or more embodiments of the presentinvention;

FIG. 6 depicts an outbound I/O operation that provides mirroring to avirtual port according to one or more embodiments of the presentinvention;

FIG. 7 depicts an inbound I/O operation according to one or moreembodiments of the present invention;

FIG. 8 depicts an inbound I/O operation that provides mirroring to aphysical port according to one or more embodiments of the presentinvention;

FIG. 9 depicts an inbound I/O operation that provides mirroring to avirtual port according to one or more embodiments of the presentinvention;

FIG. 10 depicts a flow diagram of a method for providing physical portmirroring according to one or more embodiments of the present invention;

FIG. 11 depicts a flow diagram of a method for providing virtual portmirroring according to one or more embodiments of the present invention;

FIG. 12 depicts a cloud computing environment according to one or moreembodiments of the present invention;

FIG. 13 depicts abstraction model layers according to one or moreembodiments of the present invention; and

FIG. 14 illustrates a system for performing port mirroring according toone or more embodiments of the present invention.

The diagrams depicted herein are illustrative. There can be manyvariations to the diagrams, or the operations described therein withoutdeparting from the spirit of the invention. For instance, the actionscan be performed in a differing order or actions can be added, deletedor modified. Also, the term “coupled”, and variations thereof describehaving a communications path between two elements and do not imply adirect connection between the elements with no interveningelements/connections between them. All of these variations areconsidered a part of the specification.

DETAILED DESCRIPTION

Embodiments of the present invention facilitate input/output (I/O)processing in a computing environment by providing a transport controlword (TCW) architecture for inbound and outbound port mirroring. Inaccordance with one or more embodiments of the present invention, a TCWcan be used to cause a mirror copy of inbound data received at the portor outbound data sent from the port to be transmitted to anotherphysical port or to a virtual port. One or more embodiments of thepresent invention can be utilized to capture inbound data from an I/Odevice that is received by a port on a host bus adapter (HBA) located ona server. One or more embodiments can also be utilized to captureoutbound data sent by the port on the HBA located on the server. Themirrored data can be utilized, for example, to capture inflight data forlink traces.

Contemporary methods of link tracing require an external device tocapture inflight data, that is data received at a port from a link ordata that is transmitted to the link by the port. As used herein, theterm “link tracing” refers to the process of identifying the data thatwas sent on a network link, such as a fiber optic link. The specializedtools currently required for performing link tracing are standalonetools that are expensive and usually only viable for use in testenvironments, and rarely used in production (e.g., client) environments.Typically, the link testing tool is physically coupled to the port thatis currently being tested, and the tool is moved from port to port totest different links. As part of the link tracing, contemporary testingtools capture inbound and/or outbound data and store it in a storagelocation that is off system, or remote, from the computing environmentbeing tested. Once the data is captured, problem analysis and/or dataverification is performed manually.

One or more embodiments of the present invention address one or more ofthe shortcomings of contemporary link tracing techniques by providing amechanism within the channel architecture being tested to enable data tobe programmatically mirrored for capture or analysis. One or moreembodiments output a copy of the data being mirrored to a particularport that can be used to transmit the capture data to a link testingtool or other device. The same particular port can be used to mirrordata received at or sent from different ports via a change to a TCW,which eliminates the need to move a testing tool from one port toanother to capture data from a different link. In addition, one or moreembodiments of the present invention can remove the need for anyspecialized hardware tools by capturing the link data using mirroring,and transmitting the data (e.g., via a network) to link testingsoftware. Further, one or more embodiments of the present invention canreduce the amount of one or more resources (e.g., computer storage,processor cycles, network traffic, analyst time, etc.) that are utilizedto perform link tracing and analysis, for example by applying filtersthat limit the amount and type of data that is being captured and outputto the port providing the mirroring.

Turning now to FIG. 1 , a block diagram of a computing environment 100for performing port mirroring is generally shown in accordance with oneor more embodiments of the present invention. The components shown inFIG. 1 include a server 105, a network 150, and a device 170 (e.g., astorage device or other I/O device). All or a portion of the server 105and the device 170 shown in FIG. 1 can be implemented on one or morecomputing nodes 10 of FIG. 12 and/or computer system 1400 of FIG. 14 .All or a portion of the network 150 shown in FIG. 1 can be implementedby at least a portion of cloud environment 50 of FIG. 12 and/or network1412 of FIG. 14 .

The server 105 shown in FIG. 1 can be implemented by any computerprocessing system known in the art such as, but not limited to IBM Z®from International Business Machines Corporation. The embodiment of theserver 105 shown in FIG. 1 includes central processing unit (CPU) 110,memory 115, I/O processor 120, and HBAs 130. In accordance with one ormore embodiments of the present invention, logic in the CPU 110 (e.g.,an operating system) creates a control block, such as a TCW, and sendsthe TCW to the I/O processor 120 for processing. In accordance with oneor more embodiments of the present invention, the TCW specifies atransport control block whose contents are to be transported to an I/Odevice (e.g., device 170) for processing. Example embodiments of TCWsthat can be utilized by one or more embodiments of the present inventionare described below with reference to FIG. 2 and FIG. 3 .

The I/O processor 120 includes logic for interpreting the TCW and forinstructing the HBA(s) 130 in the server 105 to take the actionsspecified by the TCW. In addition, the I/O processor 120 interfaces withthe CPU 110 and the memory 115. In accordance with one or moreembodiments of the present invention, the I/O processor 120 and the HBAs130 in the server 105 are coupled via one or more connections or busessuch as, but not limited to, one or more Peripheral ComponentInterconnect express (PCIe) connections. The I/O processor 120 canreceive TCWs from the CPU 110 or it can fetch TCWs from the CPU 110 orfrom the memory 115.

The server 105 shown in FIG. 1 also includes host bus adapters (HBAs)130 which can be implemented as circuit boards and/or integrated circuitadapters that provide I/O processing and physical connectivity betweenthe server 105 and the device 170 (e.g., a storage and/or networkdevice). The HBAs 130 can be used in conjunction with the I/O processor120 as an I/O interface to relieve the server 105 of both data storageand data retrieval tasks. Each HBA 130, or I/O card, includes aplurality of physical ports. In accordance with one or more embodimentsof the present invention, the physical ports of the HBAs 130 arephysically coupled to links (e.g., fiber optic cables or other networklinks) in order to provide a communication path between the HBA 130 onthe server 105 and an HBA 130 on the device 170.

As used herein, the term “physical port” refers to a physical port(e.g., it includes hardware) on an HBA 130, and the term “virtual port”refers to a portion of memory 115. The virtual port may be implementedby any method known in the art for storing a collection of data inmemory, such as plurality of contiguous memory locations in memoryand/or a memory array. Contents of the virtual port can also be spreadacross multiple physical memories. The virtual port may be denoted as adirect memory address or as an indirect memory address. The combinationof the links, the I/O processor 120 and the HBAs 130 on the server 105and the HBA 130 on the device 170 can be referred to as a “channel.” Thefunctions specified by the TCW and performed by the I/O processor 120and HBAs 130 can be referred to as a “channel program.”

The computing environment 100 shown in FIG. 1 also includes a device170. In accordance with one or more embodiments of the presentinvention, the device 170 includes an HBA 130 for communicating with anHBA 130 on the server 105. As shown in FIG. 1 , the device 170 is thetarget device that the server 105 is communicating with. The device 170can be any component that the server 105 sends data to or receives datafrom such as, but not limited to: a control unit, a direct accessstorage device (DASD), a tape drive, and/or another server. In anotherembodiment, device 170 may be on or a component of server 105.

In accordance with one or more embodiments of the present invention, thecomputing environment 100 utilizes a FICON®, High Performance FICON(zHPF), or a zHyperLink (zHL) I/O interface from International BusinessMachines Corporation for connecting the server 105 to the device 170.FICON, zHPF, zHL, or a mix of all channel types and configurations canbe implemented by one or more embodiments of the present invention tofacilitate the processing of I/O requests that are described in TCWs.

The network 150 shown in FIG. 1 is used to couple one or more HBAs 130on the server 105 to one or more HBAs 130 on the device 170. The network150 can be implemented using any one or more short range or long rangewired, wireless, and/or optical networks known in the art. The network150 may also include additional devices, such as network switches,routers, or any other networking devices (not shown).

For ease of description, FIG. 1 shows two HBAs 130 on server 105. Oneskilled in the art will recognize that one or more embodiments of theinvention can include a server with eight or sixteen or hundreds orthousands of HBAs 130 connecting to the network 150 and/or to one ormore other networks (not shown). Also, for ease of description, FIG. 1shows one HBA 130 on device 170. One skilled in the art will recognizethat one or more embodiments of the invention can include a device witheight or sixteen or hundreds or thousands of adapters connecting tonetwork 150 and/or to one or more other servers (not shown).

The embodiments described herein with respect to the computingenvironment 100 of FIG. 1 may be implemented with any appropriate logic,wherein the logic, as referred to herein, can include any suitablehardware (e.g., a processor, an embedded controller, or an applicationspecific integrated circuit, among others), software (e.g., anapplication, among others), firmware, or any suitable combination ofhardware, software, and firmware, in various embodiments.

It is to be understood that the block diagram of FIG. 1 is not intendedto indicate that the system is to include all of the components shown inFIG. 1 . Rather, the system can include any appropriate fewer oradditional components not illustrated in FIG. 1 such as, but not limitedto one or more additional HBAs 130, devices 170, servers 105 and/ornetworks 140. In addition, the components shown in FIG. 1 may bearranged differently. For example, the CPU 110 and the I/O processor 120may located on different servers 105, or they may part of the sameprocessing unit.

Turning now to FIG. 2 , a block diagram 200 of a TCW 202 for performingport mirroring is generally shown in accordance with one or moreembodiments of the present invention. The TCW 202 shown in FIG. 2contains pointers to all of the other areas of the channel program andthe number of bytes to be read or written. The channel uses the TCW 202to transport the commands and data to a target device, such as device170 of FIG. 1 , and to locate the status block used to store endingstatus information.

As shown in FIG. 2 , the TCW 202 points to a transport status block(TSB) 204 that contains I/O completion information, sense data, andmeasurement statistics. The TCW 202 shown in FIG. 2 also points to atransport command control block (TCCB) 206 that contains the commandsand control data parameters to be passed to the target device. The TCCB206 shown in FIG. 2 includes three parts: a transport control areaheader (TCAH) containing information about the transport control area(TCA); the TCA containing the commands and control parameters; and a TCAtrailer (TCAT) that contains the number of bytes transferred. As shownin FIG. 2 , each command in the TCA is represented by a device controlword (DCW) that includes a command code, flags to indicate chaining andother options, a control data count, and a data byte count if thecommand is used to transfer data. If the command transfers control data(command parameters) to the device, the control data follows the DCW inthe TCA. I/O buffers for all DCWs are pointed to by the TCW 202, and theI/O buffers associated with a particular DCW are based on the amount ofdata transferred by the previous DCWs. In accordance with one or moreembodiments of the present invention, the maximum size of the TCA istwo-hundred and forty bytes.

The TCCB 206 may be pointed to either directly by the TCW 202 orindirectly via a transport indirect address list (TIDAL) 208. The TCW202 may point to a single or multiple read and/or write bufferscontaining data 210. The data 210 can be accessed directly via anaddress in the TCCB 206 or indirectly via the TIDAL 208.

Turning now to FIG. 3 , example content of a TCW 300 for performing portmirroring is generally shown in accordance with one or more embodimentsof the present invention. In the embodiment shown in FIG. 3 , the TCW300 is a sixty-four-byte control block that is designated on, forinstance, a sixty-four-byte boundary. In the embodiment shown in FIG. 3, the TCW 300 includes a plurality of fields including:

Format (F) field 302: This field forms a TCW that contains a 2-bitunsigned integer value that defines the layout of the TCW. The value ofthis field is, for instance, zero.

Flags field 304: This field contains information about the TCW. Exampleflags include but are not limited to an input transport indirectaddressing flag for indicating whether the input data address field 314contains the absolute address of the input location or the absoluteaddress of a TIDAL, such as TIDAL 208 of FIG. 2 ; a TCCB indirect dataaddress flag for indicating whether the TCCB address field 318 containsthe absolute address of the transport indirect data address word or alist of transport indirect data address words that designate thelocation or locations, respectively, of the transport control block forthe transport control word; and an output transport indirect addressingflag for indicating whether the output data address field 312 containsthe absolute address of the output location or the absolute address of aTIDAL, such as TIDAL 208 of FIG. 2 .

TCCB Length (TCCBL) field 306: This field specifies an unsigned integerwhose value, when added to a select value (e.g., 20) for unidirectionaldata transfers or when added to another value (e.g., 24) forbidirectional data transfers, specifies the length of the transfercommand control block in bytes.

Read Operations (R) field 308: When this field is one, the input countfield 322 is valid and contains a non-zero value, indicating the numberof bytes to be transferred into main storage.

Write Operations (W) field 310: When this field is one, the output countfield 320 is valid and contains a non-zero value, indicating the numberof bytes to be transferred from main storage.

Output Data Address field 312: When the write operations field 310 isone and the output transport indirect data addressing flag of the flagsfield 304 is zero, this field designates a 64-bit output location in,e.g., absolute storage. When the write operations field 310 is one andthe output transport indirect data address flag of the flags field isone, this field designates a 64-bit location in, e.g., absolute storageof a transport indirect data address word or list of transport indirectdata address words that designate the output storage location orlocations.

Input Data Address field 314: When the read operations field 310 is oneand the input transport indirect data addressing flag of the flags field304 is zero, this field designates a 64-bit input location in, e.g.,absolute storage. When the read operations field 308 is one and theinput transport indirect data addressing of the flags field is one, thisfield designates the 64-bit location in, e.g., absolute storage of atransport indirect data address word or list of transport indirect dataaddress words that designate the input storage location or locations.

TSB Address field 316: This field designates a 64-bit location in, e.g.,absolute storage of a TSB, such as TSB 204 of FIG. 2 for the TCW 300.

TCCB Address field 318: If the TCCB transport indirect data address flagin the flags field 304 is zero, this field designates a 64-bit locationin, e.g., absolute storage of the TCCB, such as TCCB 206 of FIG. 2 .When the TCCB transport indirect data address field is zero, the TCCB isspecified to reside in a contiguous area of storage. If the TCCBtransport indirect data address field is one, this field designates a64-bit location in, e.g., absolute storage of a TIDAL, such as TIDAL 208of FIG. 2 , that designate the location in absolute storage of the TCCB.When the TCCB indirect data address flag in the flags field 304 is one,the TCCB may be specified to reside in a non-contiguous area of storage.

Output Count field 320: When the write operations field 310 is one, thisfield includes an unsigned integer total count of output bytes for theTCW.

Input Count field 322: When the read operations field 308 is one, thisfield contains an unsigned integer total count of input bytes for thetransport control word.

Mirror Indicator field 324: This field includes, in accordance with oneor more embodiments of the present invention, an indication of whetherport mirroring should be performed, and if mirroring is to be performed,whether the mirroring is on inbound data or outbound data. In accordancewith one or more embodiments of the present invention, when the value ofthe field is “0001” inbound port mirroring is to be performed, and whenthe value of the field is “1001” outbound port mirroring is to beperformed. The port that the Mirror Indicator field 324 and Mirror Typefield 326 refer to is a port in an HBA, such as HBA 130 of FIG. 1 ,specified, or selected, by the I/O processor, such as I/O processor 120of FIG. 1 , for driving the data transfer described by the TCW.

Mirror Type field 326: This field indicates, in accordance with one ormore embodiments of the present invention, a specific sub-type of themirroring to apply for the specific mirroring operation. For instance,if the type field indicates inbound mirroring, then this field indicatesa specific type of the inbound mirroring to be applied.

When the mirror indicator field 324 indicates inbound mirroring, thefollowing mirror type field 326 values can be implemented in accordancewith one or more embodiments of the present invention: “0000”—inboundphysical mirror clear/reset to stop the physical mirroring (i.e.,copying or mirroring of data to another physical port of the HBA) ofdata received at the port; “0010”—inbound physical mirror one-timemirror to perform physical mirroring of data received at the port forjust the current TCW being processed; “0011”—inbound physical mirror forpersistent mirror to perform physical mirroring of any subsequent datareceived on this channel, or port; “0100”—inbound virtual mirrorclear/reset to stop the virtual mirroring (i.e., copying or mirroring ofdata to a location in memory, such as memory 115 of FIG. 1 ) of datareceived at the port; “0110”—inbound virtual mirror for one-time mirrorto perform virtual mirroring of data received at the port for just thecurrent TCW being processed; and “0111”—inbound virtual mirror forpersistent mirror to perform virtual port mirroring of any subsequentdata received on this channel, or port.

When the mirror indicator field 324 indicates outbound mirroring, thefollowing mirror type field 326 values can be implemented in accordancewith one or more embodiments of the present invention: “0000”—outboundphysical mirror clear/reset to stop the physical mirroring (i.e.,copying or mirroring of data to a physical port) of data sent out fromthe port; “0010”—outbound physical mirror one-time mirror to performphysical mirroring of data transmitted by the port for just the currentTCW being processed; “0011”—outbound physical mirror for persistentmirror to perform physical mirroring of any subsequent data transmittedon this channel, or port; “0100”—outbound virtual mirror clear/reset tostop the virtual mirroring (i.e., copying or mirroring of data to alocation in memory) of data transmitted by the port; “0110”—outboundvirtual mirror for one-time mirror to perform virtual mirroring of datatransmitted by the port just the current TCW being processed; and“0111”—outbound virtual mirror for persistent mirror to perform virtualport mirroring of any subsequent data transmitted on this channel, orport.

Status field (328): This field indicates, in accordance with an aspectof the present invention, a result of the mirroring, regardless ofwhether it is a success or a failure. In one example, this fieldindicates a status field offset pointer, which is a location of moreinformation on what error, if any, occurred during mirroring.

Interrogate TCW Address field 330: This field is used to initiate aninterrogate operation when appropriate.

Although specific fields, locations of fields, sizes of fields, bits andvalues of fields or bits are described in one embodiment herein for theTCW, other fields, locations of fields, sizes of fields, bits and/orvalues of fields or bits may be used without departing from a spirit ofone or more aspects of the invention. Fields and/or sub-fields of eachof the fields not described herein may be blank, have a predefined value(e.g., zero), and/or include values to be ignored in one embodiment.Further, the TCW may include additional, fewer and/or other fields orsub-fields of fields to be used in I/O processing.

In accordance with one or more embodiments of the present invention, aTCW is directed to a specific channel, or port, via an I/O processor,such as I/O processor 120 of FIG. 1 . A linked TCW can be used by one ormore embodiments of the present invention to trigger the port mirroringand to include the mirror indicator fields (e.g., mirror indicator field324 and mirror type field 326). In accordance with one or moreembodiments of the present a primary TCW has the field, subfield, andlinked TCW address fields, and the linked TCW contains the mirroraddress (virtual) or channel ID (physical) along with any filteringinformation. The linked TCW's output data address field 312 and inputdata address field 314 can be used to specify the to and from ports forthe mirroring function.

When the mirror indicator field 324 indicates outbound mirroring orinbound mirroring, the following mirror type field 326 values can beimplemented in accordance with one or more embodiments of the presentinvention: “1000”—outbound and inbound physical mirror clear/reset tostop the physical mirroring (i.e., copying or mirroring of data to aphysical port) of data send out from the port; “1010”—outbound andinbound physical mirror one-time packet mirror to perform physicalmirroring of data transmitted by the port for the next packettransmitted by the port; “1011”—outbound and inbound physical mirror forpersistent pocket mirror to perform physical mirroring of any subsequentdata transmitted on this channel, or port; one-time packet mirror tocause data transmitted by the port to be physically mirrored for justthe current TCW being processed; “1100”—outbound and inbound virtualmirror clear/reset to stop the virtual mirroring (i.e., copying ormirroring of data to a location in memory) of data transmitted by theport; “1110”—outbound and inbound virtual mirror for one-time packetmirror to perform virtual mirroring of data transmitted by the port forthe next packet received at the port; and “1111”—outbound and inboundvirtual mirror for persistent pocket mirror to perform virtual portmirroring of any subsequent data transmitted on this channel, or port.

Additional filtering fields can also be included in one or moreembodiments of the TCW to collect a specific subset of the data.Additional filters can include, but are not limited to:

Protocol Type (R_CTL) filter to mirror only particular types data suchas, but not limited to payload data or status data and/or commands.

Link Address Source filter to mirror only data from a specific sourceaddress (e.g., a specified port).

Link Address Destination filter to mirror only data being transmitted toa specific target address (e.g., a specified port).

Frame Size filter with one or both of a lower bound and an upper boundto mirror only frames of certain sizes. The filter can be less than,greater than, a specific size, and/or a range of valid sizes.

Payload Size filter to mirror only certain size payloads.

Data Truncation filter to limit the amount of data in a payload that ismirrored. The filter can specify mirroring only a fixed size/amount ofdata from the front of the packet or from the end of the packet, or thefilter can specify mirroring only data of a specified size and/orposition in the payload.

Destination Control Unit Device Type filter to filter based on the typeof I/O device to only mirror data from particular types of I/O devicessuch as but not limited to tape device, DASD devices, flash storage, andchannel-to-channel (CTC).

The above filters are exemplary in nature and one or more embodiments ofthe invention may implement additional filters for selecting the typeand amount of data at a port to be being mirrored.

Turning now to FIG. 4 , a block diagram 400 of a process for performingan outbound I/O operation is generally shown in accordance with one ormore embodiments of the present invention. The embodiment shown in FIG.4 includes the components of the server 105 of FIG. 1 and the network ofFIG. 1 as well as a PCIe network 405 providing communication between theI/O processor 120 and the HBA 130 on the server 105. The PCIe network405 may include switches and/or splitters.

The processing shown in FIG. 4 is performed if outbound mirroring hasnot been enabled (e.g., by the Mirror Indicator field 324 of TCW 300 ofFIG. 3 ) on the port that is transmitting data to a link in the externalnetwork 150. As shown in FIG. 4 , the CPU 110 sends 402 a TCW, such asTCW 300 of FIG. 3 , to the I/O processor 120. The TCW includesinstructions to transmit data to a target device, such as device 170 ofFIG. 1 , via the network 150. The I/O processor 120 fetches 404 the datafrom the memory 115, and the I/O processor 120 sends 406 the data (alsoreferred to herein as “outbound data”) to a port on the HBA 130 via thePCIe network 405. The data is received 408 at the HBA 130 and the HBA130 packages the data and transmits 410 it via a port specified by theI/O processor 120 to a link in the external network 150 to a targetdevice, such as device 170 of FIG. 1 .

The processing shown in FIG. 4 is not intended to indicate that theoperations are to be executed in any particular order, or that all ofthe operations shown in FIG. 4 are to be included in every case.Additionally, the processing shown in FIG. 4 can include any suitablenumber of additional operations.

Turning now to FIG. 5 , a block diagram 500 of a process for performingan outbound I/O operation that provides mirroring to a physical port isgenerally shown in accordance with one or more embodiments of thepresent invention. The embodiment shown in FIG. 5 includes thecomponents of the server 105 of FIG. 1 and the network of FIG. 1 as wellas a PCIe network 405 providing communication between the I/O processor120 and two of the HBAs 130 on the server 105.

The processing shown in FIG. 5 is performed if outbound physicalmirroring has been enabled (e.g., by the Mirror Indicator field 324 andthe Mirror Type field 326 of TCW 300 of FIG. 3 ) on the port that istransmitting data to a link in the external network 150. As shown inFIG. 5 , the CPU 110 sends 502 a TCW, such as TCW 300 of FIG. 3 , to theI/O processor 120. The TCW includes instructions to transmit data to atarget device, such as device 170 of FIG. 1 , via the network 150. Inresponse to receiving (or retrieving) the TCW, the I/O processor 120fetches 504 the data from the memory 115, and the I/O processor 120sends 506 a the data to a port on the HBA 130 via the PCIe network 405.The data is received 408 a at the HBA 130 and the HBA 130 packages thedata and transmits 510 it via a port specified by the I/O processor 120to a link in the external network 150 to a target device (not shown),such as device 170 of FIG. 1 .

In addition, because outbound physical mirroring has been enabled on theport that is transmitting data to a link on the external network 150,the I/O processor 120 also sends 506 b a copy of the data to anotherport on another HBA 130 via the PCIe network 405. In accordance with oneor more embodiments of the present invention, the sending 506 a and 506b can be initiated at the same time or the sending 506 b can beinitiated close in time but subsequent to the sending 506 a. The copy ofthe data is received 508 b at the other port on the other HBA 130 andtransmitted 512 to a second target device (not shown).

In one or more embodiments prior to the processing shown in FIG. 5 , alinked TCW that contains instructions related to the mirroring and doesnot include any payload data to be transmitted is sent from the CPU 110to the I/O processor 120. In these one or more embodiments, the TCWincludes an identifier of the port to be mirrored and the port toperform the mirroring. The type of data being copied, or mirrored, andthe duration of the mirroring can be specified using the Mirror Typefield 326 of the TCW as well as additional filters specified in the TCW.In accordance with one or more embodiments of the present invention, themirroring described in FIG. 5 is performed based on contents of thelinked TCW received prior to the I/O processor 120 receiving the TCWcontaining or specifying the data to be transmitted to the target devicevia the external network 150.

In one or more embodiments of the present invention, the port performingthe mirroring and the port being mirrored are located on the same HBA130.

The processing shown in FIG. 5 is not intended to indicate that theoperations are to be executed in any particular order, or that all ofthe operations shown in FIG. 5 are to be included in every case.Additionally, the processing shown in FIG. 5 can include any suitablenumber of additional operations.

Turning now to FIG. 6 , a block diagram 600 of performing an outboundI/O operation that provides mirroring to a virtual port is generallyshown in accordance with one or more embodiments of the presentinvention. The embodiment shown in FIG. 6 includes the components of theserver 105 of FIG. 1 and the network of FIG. 1 as well as a PCIe network405 providing communication between the I/O processor 120 and an HBA 130on the server 105.

The processing shown in FIG. 6 is performed if outbound virtualmirroring has been enabled (e.g., by the Mirror Indicator field 324 andthe Mirror Type field 326 of TCW 300 of FIG. 3 ) on the port that istransmitting data to a link in the external network 150. As shown inFIG. 6 , the CPU 110 sends 602 a TCW, such as TCW 300 of FIG. 3 , to theI/O processor 120. The TCW includes instructions to transmit data to atarget device, such as device 170 of FIG. 1 , via the network 150. Inresponse to receiving (or retrieving) the TCW, the I/O processor 120fetches 604 the data from the memory 115, and the I/O processor 120sends 606 a the data to a port on the HBA 130 via the PCIe network 405.The data is received 608 at the HBA 130 and the HBA 130 packages thedata and transmits 610 it via a port specified by the I/O processor 120to a link in the external network 150 to a target device (not shown),such as device 170 of FIG. 1 .

In addition, because outbound virtual mirroring has been enabled on theport that is transmitting data to a link on the external network 150,the I/O processor 120 also sends 606 b a copy of the data to a secondlocation in the memory 115 (different than the memory location where thedata was fetched from). This second location in the memory is referredto herein as the “virtual port.” In accordance with one or moreembodiments of the present invention, the sending 606 a and 606 b can beinitiated at the same time or the sending 606 b can be initiated closein time but subsequent to the sending 606 a. The copy of the data isstored in the memory 115 can be reviewed or inspected for the purposesof problem debug or saved for redundancy

In one or more embodiments prior to the processing shown in FIG. 6 , alinked TCW that contains instructions related to the mirroring and doesnot include any payload data to be transmitted is sent from the CPU 110to the I/O processor 120. In these one or more embodiments, the linkedTCW includes the address of the virtual port in the memory 115. The typeof data being copied, or mirrored, and the duration of the mirroring canbe specified using the Mirror Type field 326 of the TCW as well asadditional filters specified in the linked TCW. In accordance with oneor more embodiments of the present invention, the mirroring described inFIG. 6 is performed based on contents of the linked TCW received priorto the I/O processor 120 receiving the TCW containing or specifying thedata to be transmitted to the target device via the external network150.

The processing shown in FIG. 6 is not intended to indicate that theoperations are to be executed in any particular order, or that all ofthe operations shown in FIG. 6 are to be included in every case.Additionally, the processing shown in FIG. 6 can include any suitablenumber of additional operations.

Turning now to FIG. 7 , a block diagram 700 of a process for performingan inbound I/O operation is generally shown in accordance with one ormore embodiments of the present invention. The embodiment shown in FIG.7 includes the components of the server 105 of FIG. 1 and the network ofFIG. 1 as well as a PCIe network 405 providing communication between theI/O processor 120 and the HBA 130 on the server 105.

The processing shown in FIG. 7 is performed if inbound mirroring has notbeen enabled (e.g., by the Mirror Indicator field 324 of TCW 300 of FIG.3 ) on the port that is receiving data from a link in the externalnetwork 150. As shown in FIG. 7 , a data packet is received 702 at aport on the HBA 130. The HBA 130 removes the framing metadata associatedwith the data packet and sends 704 the data (also referred to herein as“inbound data”) to the I/O processor 120 via the PCIe network 405. Thedata is received 706 at the I/O processor 120 and the I/O processor 120stores 708 the inbound data in the memory 115. As shown in FIG. 7 , theI/O processor 120 notifies 710 the CPU 110 that the inbound data isstored in the memory.

The processing shown in FIG. 7 is not intended to indicate that theoperations are to be executed in any particular order, or that all ofthe operations shown in FIG. 7 are to be included in every case.Additionally, the processing shown in FIG. 7 can include any suitablenumber of additional operations.

Turning now to FIG. 8 , a block diagram 800 of a process for performingan inbound I/O operation that provides mirroring to a physical port isgenerally shown in accordance with one or more embodiments of thepresent invention. The embodiment shown in FIG. 8 includes thecomponents of the server 105 of FIG. 1 and the network of FIG. 1 as wellas a PCIe network 405 providing communication between the I/O processor120 and two of the HBAs 130 on the server 105.

The processing shown in FIG. 8 is performed if inbound physicalmirroring has been enabled (e.g., by the Mirror Indicator field 324 andthe Mirror Type field 326 of TCW 300 of FIG. 3 ) on the port that isreceiving the data from the link in the external network 150. In one ormore embodiments of the present invention, a TCW (e.g., a linked TCW)that contains instructions related to the mirroring is sent 802 from theCPU 110 to the I/O processor 120. In these one or more embodiments, theTCW includes an identifier of the port to be mirrored and the port toperform the mirroring, or to be mirrored to. The type of data beingcopied, or mirrored, and the duration of the mirroring can be specifiedusing the Mirror Type field 326 of the TCW as well as additional filtersspecified in the TCW. In accordance with one or more embodiments of thepresent invention, the mirroring described in FIG. 8 is performed basedon contents of the linked TCW received prior to the I/O processor 120receiving the inbound data from the external network 150.

As shown in FIG. 8 , a data packet is received 804 at a port on the HBA130. The HBA 130 removes the framing metadata associated with the datapacket and sends 806 the data (also referred to herein as “inbounddata”) to the I/O processor 120 via the PCIe network 405. The data isreceived 808 at the I/O processor 120 and the I/O processor 120 stores810 the data to a memory array in the memory 115. As shown in FIG. 8 ,the I/O processor 120 notifies 818 the CPU 110 that the inbound data isstored in the memory and may also notify the CPU 110 about the mirroreddata.

In addition, because inbound physical mirroring has been enabled on theport that the data was received on, the I/O processor 120 also sends 812a copy of the data to another physical port on another HBA 130 via thePCIe network 405. The copy of the inbound data is received 814 by theother HBA 130 and transmitted 816 to a target device (not shown).

In one or more embodiments of the present invention, the port performingthe mirroring and the port receiving the inbound data can be located onthe same HBA 130.

The processing shown in FIG. 8 is not intended to indicate that theoperations are to be executed in any particular order, or that all ofthe operations shown in FIG. 8 are to be included in every case.Additionally, the processing shown in FIG. 8 can include any suitablenumber of additional operations.

Turning now to FIG. 9 , a block diagram 900 of performing an inbound I/Ooperation that provides mirroring to a virtual port is generally shownin accordance with one or more embodiments of the present invention. Theembodiment shown in FIG. 9 includes the components of the server 105 ofFIG. 1 and the network of FIG. 1 as well as a PCIe network 405 providingcommunication between the I/O processor 120 and an HBA 130 on the server105.

The processing shown in FIG. 9 is performed if inbound virtual mirroringhas been enabled (e.g., by the Mirror Indicator field 324 and the MirrorType field 326 of TCW 300 of FIG. 3 ) on the port that is receivinginbound data from a link in the external network 150. As shown in FIG. 9, a data packet is received 904 at a port on the HBA 130. The HBA 130removes the framing metadata associated with the data packet and sends906 the data (also referred to herein as “inbound data”) to the I/Oprocessor 120 via the PCIe network 405. The data is received 908 at theI/O processor 120 and the I/O processor 120 stores 910 a the data in amemory array in the memory 115. As shown in FIG. 8 , the I/O processor120 notifies 818 the CPU 110 that the inbound data is stored in thememory and may also notify the CPU 110 about the mirrored data at thevirtual port.

In addition, because inbound virtual mirroring has been enabled on theport that the data was received on, the I/O processor 120 also stores910 b a copy of the data to a second memory location (virtual port) inthe memory 115.

The processing shown in FIG. 9 is not intended to indicate that theoperations are to be executed in any particular order, or that all ofthe operations shown in FIG. 9 are to be included in every case.Additionally, the processing shown in FIG. 9 can include any suitablenumber of additional operations.

Turning now to FIG. 10 , a flow diagram of a method 1000 for providingphysical port mirroring is generally shown in accordance with one ormore embodiments of the present invention. All or a portion of theprocessing shown in FIG. 10 can be performed by an I/O processor, suchas I/O processor 120 of FIG. 1 . At block 1002, a TCW that includes aninstruction to perform physical port mirroring is received. The TCW maybe a linked TCW or a TCW that also specifies an I/O operation to beperformed by the I/O processor. The TCW may be received from anoperating system executing on a processor, such as CPU 110 of FIG. 1 .The instruction may indicate that the physical port mirroring should beperformed for a plurality of outbound or inbound transmissions on theport (e.g., until a new mirroring instruction for the port is receivedor for a specified time frame or a specified number of transmissions),or alternatively the instruction may indicate that mirroring should beperformed for just a single transmission on the port. At block 1004, afirst port to be mirrored and a second port to perform the mirroring areidentified based, for example on contents of the TCW.

At block 1006, in response to outbound data being sent to the first portand to the instruction specifying outbound port mirroring, a copy of theoutbound data is sent to a second target device via the second port. Inaccordance with one or more embodiments of the present invention thecopy of the outbound data can include all or only a portion (a propersubset) of the outbound data sent to the first port. Contents of thecopy of the outbound data can be determined based on settings in theMirror Indicator field 324 and the Mirror Type field 326 of a TCW 300and/or based on filters as described previously. In accordance with oneor more embodiments of the present invention, the I/O processor receivesan instruction (e.g., from an OS executing on a CPU) to send theoutbound data to the first target device. In response to receiving theinstruction, the I/O processor fetches the outbound data from a memoryand sends the outbound data to the first port for transmission to thefirst target device.

At block 1008, in response to receiving inbound data at the first portand to the instruction specifying inbound port mirroring, a copy of theinbound data is transmitted to the second target device via the secondport. In accordance with one or more embodiments of the presentinvention the copy of the inbound data transmitted to the second targetdevice can include all or only a portion (a proper subset) of theinbound data received at the first port. Contents of the copy of theinbound data can be determined based on settings in the Mirror Indicatorfield 324 and the Mirror Type field 326 of a TCW 300 and/or based onfilters as described previously. In accordance with one or moreembodiments of the present invention, the I/O processor receives inbounddata from the first port and stores the inbound data into a memory(e.g., for access by the CPU).

The processing shown in FIG. 10 is not intended to indicate that theoperations are to be executed in any particular order, or that all ofthe operations shown in FIG. 10 are to be included in every case.Additionally, the processing shown in FIG. 10 can include any suitablenumber of additional operations.

Turning now to FIG. 11 , a flow diagram of a method 1100 for providingvirtual port mirroring is generally shown in accordance with one or moreembodiments of the present invention. All or a portion of the processingshown in FIG. 11 can be performed by an I/O processor, such as I/Oprocessor 120 of FIG. 1 . At block 1102, a TCW that includes aninstruction to perform virtual port mirroring is received. The TCW maybe a linked TCW or a TCW that also specifies an I/O operation to beperformed by the I/O processor. The TCW may be received from anoperating system executing on a processor, such as CPU 110 of FIG. 1 .The instruction may indicate that the virtual port mirroring should beperformed for a plurality of outbound or inbound transmissions on theport (e.g., until a new mirroring instruction for the port is receivedor for a specified time frame or a specified number of transmissions),or alternatively the instruction may indicate that mirroring should beperformed for just a single transmission on the port.

At block 1104, a first port to be mirrored and a second virtual port(e.g., a memory location or memory array) to perform the mirroring areidentified based, for example on contents of the TCW. At block 1106, inresponse to outbound data being sent to the first port and to theinstruction specifying outbound port mirroring, a copy of the outbounddata is stored to the memory location of the virtual port. In accordancewith one or more embodiments of the present invention the copy of theoutbound data can include all or only a portion (a proper subset) of theoutbound data sent to the first port. Contents of the copy of theoutbound data can be determined based on settings in the MirrorIndicator field 324 and the Mirror Type field 326 of a TCW 300 and/orbased on filters as described previously. In accordance with one or moreembodiments of the present invention, the I/O processor receives aninstruction (e.g., from an OS executing on a CPU) to send the outbounddata to the first target device. In response to receive the instruction,the I/O processor fetches the outbound data from a memory and sends theoutbound data to the first port for transmission to the first targetdevice.

At block 1108, in response to receiving inbound data at the first portand to the instruction specifying inbound port mirroring, a copy of theinbound data is stored in the memory location of the virtual port. Inaccordance with one or more embodiments of the present invention thecopy of the inbound data transmitted to the second target device caninclude all or only a portion (a proper subset) of the inbound datareceived at the first port. In accordance with one or more embodimentsof the present invention, the I/O processor receives inbound data fromthe first port and stores the inbound data into a memory (e.g., foraccess by the CPU).

The processing shown in FIG. 11 is not intended to indicate that theoperations are to be executed in any particular order, or that all ofthe operations shown in FIG. 11 are to be included in every case.Additionally, the processing shown in FIG. 12 can include any suitablenumber of additional operations.

It is to be understood that although this disclosure includes a detaileddescription on cloud computing, implementation of the teachings recitedherein are not limited to a cloud computing environment. Rather,embodiments of the present invention are capable of being implemented inconjunction with any other type of computing environment now known orlater developed.

Cloud computing is a model of service delivery for enabling convenient,on-demand network access to a shared pool of configurable computingresources (e.g., networks, network bandwidth, servers, processing,memory, storage, applications, virtual machines, and services) that canbe rapidly provisioned and released with minimal management effort orinteraction with a provider of the service. This cloud model may includeat least five characteristics, at least three service models, and atleast four deployment models.

Characteristics are as follows:

On-demand self-service: a cloud consumer can unilaterally provisioncomputing capabilities, such as server time and network storage, asneeded automatically without requiring human interaction with theservice's provider.

Broad network access: capabilities are available over a network andaccessed through standard mechanisms that promote use by heterogeneousthin or thick client platforms (e.g., mobile phones, laptops, and PDAs).

Resource pooling: the provider's computing resources are pooled to servemultiple consumers using a multi-tenant model, with different physicaland virtual resources dynamically assigned and reassigned according todemand. There is a sense of location independence in that the consumergenerally has no control or knowledge over the exact location of theprovided resources but may be able to specify location at a higher levelof abstraction (e.g., country, state, or datacenter).

Rapid elasticity: capabilities can be rapidly and elasticallyprovisioned, in some cases automatically, to quickly scale out andrapidly released to quickly scale in. To the consumer, the capabilitiesavailable for provisioning often appear to be unlimited and can bepurchased in any quantity at any time.

Measured service: cloud systems automatically control and optimizeresource use by leveraging a metering capability at some level ofabstraction appropriate to the type of service (e.g., storage,processing, bandwidth, and active user accounts). Resource usage can bemonitored, controlled, and reported, providing transparency for both theprovider and consumer of the utilized service.

Service Models are as follows:

Software as a Service (SaaS): the capability provided to the consumer isto use the provider's applications running on a cloud infrastructure.The applications are accessible from various client devices through athin client interface such as a web browser (e.g., web-based e-mail).The consumer does not manage or control the underlying cloudinfrastructure including network, servers, operating systems, storage,or even individual application capabilities, with the possible exceptionof limited user-specific application configuration settings.

Platform as a Service (PaaS): the capability provided to the consumer isto deploy onto the cloud infrastructure consumer-created or acquiredapplications created using programming languages and tools supported bythe provider. The consumer does not manage or control the underlyingcloud infrastructure including networks, servers, operating systems, orstorage, but has control over the deployed applications and possiblyapplication hosting environment configurations.

Infrastructure as a Service (IaaS): the capability provided to theconsumer is to provision processing, storage, networks, and otherfundamental computing resources where the consumer is able to deploy andrun arbitrary software, which can include operating systems andapplications. The consumer does not manage or control the underlyingcloud infrastructure but has control over operating systems, storage,deployed applications, and possibly limited control of select networkingcomponents (e.g., host firewalls).

Deployment Models are as follows:

Private cloud: the cloud infrastructure is operated solely for anorganization. It may be managed by the organization or a third party andmay exist on-premises or off-premises.

Community cloud: the cloud infrastructure is shared by severalorganizations and supports a specific community that has shared concerns(e.g., mission, security requirements, policy, and complianceconsiderations). It may be managed by the organizations or a third partyand may exist on-premises or off-premises.

Public cloud: the cloud infrastructure is made available to the generalpublic or a large industry group and is owned by an organization sellingcloud services.

Hybrid cloud: the cloud infrastructure is a composition of two or moreclouds (private, community, or public) that remain unique entities butare bound together by standardized or proprietary technology thatenables data and application portability (e.g., cloud bursting forload-balancing between clouds).

A cloud computing environment is service oriented with a focus onstatelessness, low coupling, modularity, and semantic interoperability.At the heart of cloud computing is an infrastructure that includes anetwork of interconnected nodes.

Referring now to FIG. 12 , illustrative cloud computing environment 50is depicted. As shown, cloud computing environment 50 includes one ormore cloud computing nodes 10 with which local computing devices used bycloud consumers, such as, for example, personal digital assistant (PDA)or cellular telephone 54A, desktop computer 54B, laptop computer 54C,and/or automobile computer system 54N may communicate. Nodes 10 maycommunicate with one another. They may be grouped (not shown) physicallyor virtually, in one or more networks, such as Private, Community,Public, or Hybrid clouds as described hereinabove, or a combinationthereof. This allows cloud computing environment 50 to offerinfrastructure, platforms and/or software as services for which a cloudconsumer does not need to maintain resources on a local computingdevice. It is understood that the types of computing devices 54A-N shownin FIG. 12 are intended to be illustrative only and that computing nodes10 and cloud computing environment 50 can communicate with any type ofcomputerized device over any type of network and/or network addressableconnection (e.g., using a web browser).

Referring now to FIG. 13 , a set of functional abstraction layersprovided by cloud computing environment 50 (FIG. 12 ) is shown. Itshould be understood in advance that the components, layers, andfunctions shown in FIG. 13 are intended to be illustrative only andembodiments of the invention are not limited thereto. As depicted, thefollowing layers and corresponding functions are provided:

Hardware and software layer 60 includes hardware and softwarecomponents. Examples of hardware components include: mainframes 61; RISC(Reduced Instruction Set Computer) architecture based servers 62;servers 63; blade servers 64; storage devices 65; and networks andnetworking components 66. In some embodiments, software componentsinclude network application server software 67 and database software 68.

Virtualization layer 70 provides an abstraction layer from which thefollowing examples of virtual entities may be provided: virtual servers71; virtual storage 72; virtual networks 73, including virtual privatenetworks; virtual applications and operating systems 74; and virtualclients 75.

In one example, management layer 80 may provide the functions describedbelow. Resource provisioning 81 provides dynamic procurement ofcomputing resources and other resources that are utilized to performtasks within the cloud computing environment. Metering and Pricing 82provide cost tracking as resources are utilized within the cloudcomputing environment, and billing or invoicing for consumption of theseresources. In one example, these resources may include applicationsoftware licenses. Security provides identity verification for cloudconsumers and tasks, as well as protection for data and other resources.User portal 83 provides access to the cloud computing environment forconsumers and system administrators. Service level management 84provides cloud computing resource allocation and management such thatrequired service levels are met. Service Level Agreement (SLA) planningand fulfillment 85 provide pre-arrangement for, and procurement of,cloud computing resources for which a future requirement is anticipatedin accordance with an SLA.

Workloads layer 90 provides examples of functionality for which thecloud computing environment may be utilized. Examples of workloads andfunctions which may be provided from this layer include: mapping andnavigation 91; software development and lifecycle management 92; virtualclassroom education delivery 93; data analytics processing 94;transaction processing 95; and data encryption/decryption 96.

It is understood that one or more embodiments of the present inventionare capable of being implemented in conjunction with any type ofcomputing environment now known or later developed.

Turning now to FIG. 14 , a computer system 1400 is generally shown inaccordance with an embodiment. All or a portion of the computer system1400 shown in FIG. 14 can be implemented by one or more cloud computingnodes 10 of FIG. 12 . The computer system 1400 can be an electronic,computer framework comprising and/or employing any number andcombination of computing devices and networks utilizing variouscommunication technologies, as described herein. The computer system1400 can be easily scalable, extensible, and modular, with the abilityto change to different services or reconfigure some featuresindependently of others. The computer system 1400 may be, for example, aserver, desktop computer, laptop computer, tablet computer, orsmartphone. In some examples, computer system 1400 may be a cloudcomputing node. Computer system 1400 may be described in the generalcontext of computer system executable instructions, such as programmodules, being executed by a computer system. Generally, program modulesmay include routines, programs, objects, components, logic, datastructures, and so on that perform particular tasks or implementparticular abstract data types. Computer system 1400 may be practiced indistributed cloud computing environments where tasks are performed byremote processing devices that are linked through a communicationsnetwork. In a distributed cloud computing environment, program modulesmay be located in both local and remote computer system storage mediaincluding memory storage devices.

As shown in FIG. 14 , the computer system 1400 has one or more centralprocessing units (CPU(s)) 1401 a, 1401 b, 1401 c, etc. (collectively orgenerically referred to as processor(s) 1401). The processors 1401 canbe a single-core processor, multi-core processor, computing cluster, orany number of other configurations. The processors 1401, also referredto as processing circuits, are coupled via a system bus 1402 to a systemmemory 1403 and various other components. The system memory 1403 caninclude a read only memory (ROM) 1404 and a random access memory (RAM)1405. The ROM 1404 is coupled to the system bus 1402 and may include abasic input/output system (BIOS), which controls certain basic functionsof the computer system 1400. The RAM is read-write memory coupled to thesystem bus 1402 for use by the processors 1401. The system memory 1403provides temporary memory space for operations of said instructionsduring operation. The system memory 1403 can include random accessmemory (RAM), read only memory, flash memory, or any other suitablememory systems.

The computer system 1400 comprises an input/output (I/O) adapter 1406and a communications adapter 1407 coupled to the system bus 1402. TheI/O adapter 1406 may be a serial advanced technology attachment (SATA)adapter that communicates with a hard disk 1408 and/or any other similarcomponent. The I/O adapter 1406 and the hard disk 1408 are collectivelyreferred to herein as a mass storage 1410.

Software 1411 for execution on the computer system 1400 may be stored inthe mass storage 1410. The mass storage 1410 is an example of a tangiblestorage medium readable by the processors 1401, where the software 1411is stored as instructions for execution by the processors 1401 to causethe computer system 1400 to operate, such as is described herein withrespect to the various Figures. Examples of computer program product andthe execution of such instruction is discussed herein in more detail.The communications adapter 1407 interconnects the system bus 1402 with anetwork 1412, which may be an outside network, enabling the computersystem 1400 to communicate with other such systems. In one embodiment, aportion of the system memory 1403 and the mass storage 1410 collectivelystore an operating system, which may be any appropriate operatingsystem, such as the z/OS® or AIX® operating system, to coordinate thefunctions of the various components shown in FIG. 14 .

Additional input/output devices are shown as connected to the system bus1402 via a display adapter 1415 and an interface adapter 1416 and. Inone embodiment, the adapters 1406, 1407, 1415, and 1416 may be connectedto one or more I/O buses that are connected to the system bus 1402 viaan intermediate bus bridge (not shown). A display 1419 (e.g., a screenor a display monitor) is connected to the system bus 1402 by a displayadapter 1415, which may include a graphics controller to improve theperformance of graphics intensive applications and a video controller. Akeyboard 1421, a mouse 1422, a speaker 1423, etc. can be interconnectedto the system bus 1402 via the interface adapter 1416, which mayinclude, for example, a Super I/O chip integrating multiple deviceadapters into a single integrated circuit. Suitable I/O buses forconnecting peripheral devices such as hard disk controllers, networkadapters, and graphics adapters typically include common protocols, suchas the Peripheral Component Interconnect (PCI). Thus, as configured inFIG. 14 , the computer system 1400 includes processing capability in theform of the processors 1401, and storage capability including the systemmemory 1403 and the mass storage 1410, input means such as the keyboard1421 and the mouse 1422, and output capability including the speaker1423 and the display 1419.

In some embodiments, the communications adapter 1407 can transmit datausing any suitable interface or protocol, such as the internet smallcomputer system interface, among others. The network 1412 may be acellular network, a radio network, a wide area network (WAN), a localarea network (LAN), or the Internet, among others. An external computingdevice may connect to the computer system 1400 through the network 1412.In some examples, an external computing device may be an externalwebserver or a cloud computing node.

It is to be understood that the block diagram of FIG. 14 is not intendedto indicate that the computer system 1400 is to include all of thecomponents shown in FIG. 14 . Rather, the computer system 1400 caninclude any appropriate fewer or additional components not illustratedin FIG. 14 (e.g., additional memory components, embedded controllers,modules, additional network interfaces, etc.). Further, the embodimentsdescribed herein with respect to computer system 1400 may be implementedwith any appropriate logic, wherein the logic, as referred to herein,can include any suitable hardware (e.g., a processor, an embeddedcontroller, or an application specific integrated circuit, amongothers), software (e.g., an application, among others), firmware, or anysuitable combination of hardware, software, and firmware, in variousembodiments.

Various embodiments of the invention are described herein with referenceto the related drawings. Alternative embodiments of the invention can bedevised without departing from the scope of this invention. Variousconnections and positional relationships (e.g., over, below, adjacent,etc.) are set forth between elements in the following description and inthe drawings. These connections and/or positional relationships, unlessspecified otherwise, can be direct or indirect, and the presentinvention is not intended to be limiting in this respect. Accordingly, acoupling of entities can refer to either a direct or an indirectcoupling, and a positional relationship between entities can be a director indirect positional relationship. Moreover, the various tasks andprocess steps described herein can be incorporated into a morecomprehensive procedure or process having additional steps orfunctionality not described in detail herein.

One or more of the methods described herein can be implemented with anyor a combination of the following technologies, which are each wellknown in the art: a discreet logic circuit(s) having logic gates forimplementing logic functions upon data signals, an application specificintegrated circuit (ASIC) having appropriate combinational logic gates,a programmable gate array(s) (PGA), a field programmable gate array(FPGA), etc.

For the sake of brevity, conventional techniques related to making andusing aspects of the invention may or may not be described in detailherein. In particular, various aspects of computing systems and specificcomputer programs to implement the various technical features describedherein are well known. Accordingly, in the interest of brevity, manyconventional implementation details are only mentioned briefly herein orare omitted entirely without providing the well-known system and/orprocess details.

In some embodiments, various functions or acts can take place at a givenlocation and/or in connection with the operation of one or moreapparatuses or systems. In some embodiments, a portion of a givenfunction or act can be performed at a first device or location, and theremainder of the function or act can be performed at one or moreadditional devices or locations.

The terminology used herein is for the purpose of describing particularembodiments only and is not intended to be limiting. As used herein, thesingular forms “a”, “an” and “the” are intended to include the pluralforms as well, unless the context clearly indicates otherwise. It willbe further understood that the terms “comprises” and/or “comprising,”when used in this specification, specify the presence of statedfeatures, integers, steps, operations, elements, and/or components, butdo not preclude the presence or addition of one or more other features,integers, steps, operations, element components, and/or groups thereof.

The corresponding structures, materials, acts, and equivalents of allmeans or step plus function elements in the claims below are intended toinclude any structure, material, or act for performing the function incombination with other claimed elements as specifically claimed. Thepresent disclosure has been presented for purposes of illustration anddescription but is not intended to be exhaustive or limited to the formdisclosed. Many modifications and variations will be apparent to thoseof ordinary skill in the art without departing from the scope and spiritof the disclosure. The embodiments were chosen and described in order tobest explain the principles of the disclosure and the practicalapplication, and to enable others of ordinary skill in the art tounderstand the disclosure for various embodiments with variousmodifications as are suited to the particular use contemplated.

The diagrams depicted herein are illustrative. There can be manyvariations to the diagram, or the steps (or operations) describedtherein without departing from the spirit of the disclosure. Forinstance, the actions can be performed in a differing order or actionscan be added, deleted or modified. Also, the term “coupled” describeshaving a signal path between two elements and does not imply a directconnection between the elements with no intervening elements/connectionstherebetween. All of these variations are considered a part of thepresent disclosure.

The following definitions and abbreviations are to be used for theinterpretation of the claims and the specification. As used herein, theterms “comprises,” “comprising,” “includes,” “including,” “has,”“having,” “contains” or “containing,” or any other variation thereof,are intended to cover a non-exclusive inclusion. For example, acomposition, a mixture, process, method, article, or apparatus thatcomprises a list of elements is not necessarily limited to only thoseelements but can include other elements not expressly listed or inherentto such composition, mixture, process, method, article, or apparatus.

Additionally, the term “exemplary” is used herein to mean “serving as anexample, instance or illustration.” Any embodiment or design describedherein as “exemplary” is not necessarily to be construed as preferred oradvantageous over other embodiments or designs. The terms “at least one”and “one or more” are understood to include any integer number greaterthan or equal to one, i.e. one, two, three, four, etc. The terms “aplurality” are understood to include any integer number greater than orequal to two, i.e. two, three, four, five, etc. The term “connection”can include both an indirect “connection” and a direct “connection.”

The terms “about,” “substantially,” “approximately,” and variationsthereof, are intended to include the degree of error associated withmeasurement of the particular quantity based upon the equipmentavailable at the time of filing the application. For example, “about”can include a range of ±8% or 5%, or 2% of a given value.

The present invention may be a system, a method, and/or a computerprogram product at any possible technical detail level of integration.The computer program product may include a computer readable storagemedium (or media) having computer readable program instructions thereonfor causing a processor to carry out aspects of the present invention.

The computer readable storage medium can be a tangible device that canretain and store instructions for use by an instruction executiondevice. The computer readable storage medium may be, for example, but isnot limited to, an electronic storage device, a magnetic storage device,an optical storage device, an electromagnetic storage device, asemiconductor storage device, or any suitable combination of theforegoing. A non-exhaustive list of more specific examples of thecomputer readable storage medium includes the following: a portablecomputer diskette, a hard disk drive (HDD), a solid state drive (SDD), arandom access memory (RAM), a read-only memory (ROM), an erasableprogrammable read-only memory (EPROM or Flash memory), a static randomaccess memory (SRAM), a portable compact disc read-only memory (CD-ROM),a digital versatile disk (DVD), a memory stick, a floppy disk, amechanically encoded device such as punch-cards or raised structures ina groove having instructions recorded thereon, and any suitablecombination of the foregoing. A computer readable storage medium, asused herein, is not to be construed as being transitory signals per se,such as radio waves or other freely propagating electromagnetic waves,electromagnetic waves propagating through a waveguide or othertransmission media (e.g., light pulses passing through a fiber-opticcable), or electrical signals transmitted through a wire.

Computer readable program instructions described herein can bedownloaded to respective computing/processing devices from a computerreadable storage medium or to an external computer or external storagedevice via a network, for example, the Internet, a local area network, awide area network and/or a wireless network. The network may comprisecopper transmission cables, optical transmission fibers, wirelesstransmission, routers, firewalls, switches, gateway computers and/oredge servers. A network adapter card or network interface in eachcomputing/processing device receives computer readable programinstructions from the network and forwards the computer readable programinstructions for storage in a computer readable storage medium withinthe respective computing/processing device.

Computer readable program instructions for carrying out operations ofthe present invention may be assembler instructions,instruction-set-architecture (ISA) instructions, machine instructions,machine dependent instructions, microcode, firmware instructions,state-setting data, configuration data for integrated circuitry, oreither source code or object code written in any combination of one ormore programming languages, including an object oriented programminglanguage such as Smalltalk, C++, or the like, and procedural programminglanguages, such as the “C” programming language or similar programminglanguages. The computer readable program instructions may executeentirely on the user's computer, partly on the user's computer, as astand-alone software package, partly on the user's computer and partlyon a remote computer or entirely on the remote computer or server. Inthe latter scenario, the remote computer may be connected to the user'scomputer through any type of network, including a local area network(LAN) or a wide area network (WAN), or the connection may be made to anexternal computer (for example, through the Internet using an InternetService Provider). In some embodiments, electronic circuitry including,for example, programmable logic circuitry, field-programmable gatearrays (FPGA), or programmable logic arrays (PLA) may execute thecomputer readable program instruction by utilizing state information ofthe computer readable program instructions to personalize the electroniccircuitry, in order to perform aspects of the present invention.

Aspects of the present invention are described herein with reference toflowchart illustrations and/or block diagrams of methods, apparatus(systems), and computer program products according to embodiments of theinvention. It will be understood that each block of the flowchartillustrations and/or block diagrams, and combinations of blocks in theflowchart illustrations and/or block diagrams, can be implemented bycomputer readable program instructions.

These computer readable program instructions may be provided to aprocessor of a general purpose computer, special purpose computer, orother programmable data processing apparatus to produce a machine, suchthat the instructions, which execute via the processor of the computeror other programmable data processing apparatus, create means forimplementing the functions/acts specified in the flowchart and/or blockdiagram block or blocks. These computer readable program instructionsmay also be stored in a computer readable storage medium that can directa computer, a programmable data processing apparatus, and/or otherdevices to function in a particular manner, such that the computerreadable storage medium having instructions stored therein comprises anarticle of manufacture including instructions which implement aspects ofthe function/act specified in the flowchart and/or block diagram blockor blocks.

The computer readable program instructions may also be loaded onto acomputer, other programmable data processing apparatus, or other deviceto cause a series of operational steps to be performed on the computer,other programmable apparatus or other device to produce a computerimplemented process, such that the instructions which execute on thecomputer, other programmable apparatus, or other device implement thefunctions/acts specified in the flowchart and/or block diagram block orblocks.

The flowchart and block diagrams in the Figures illustrate thearchitecture, functionality, and operation of possible implementationsof systems, methods, and computer program products according to variousembodiments of the present invention. In this regard, each block in theflowchart or block diagrams may represent a module, segment, or portionof instructions, which comprises one or more executable instructions forimplementing the specified logical function(s). In some alternativeimplementations, the functions noted in the blocks may occur out of theorder noted in the Figures. For example, two blocks shown in successionmay, in fact, be executed substantially concurrently, or the blocks maysometimes be executed in the reverse order, depending upon thefunctionality involved. It will also be noted that each block of theblock diagrams and/or flowchart illustration, and combinations of blocksin the block diagrams and/or flowchart illustration, can be implementedby special purpose hardware-based systems that perform the specifiedfunctions or acts or carry out combinations of special purpose hardwareand computer instructions.

The descriptions of the various embodiments of the present inventionhave been presented for purposes of illustration but are not intended tobe exhaustive or limited to the embodiments disclosed. Manymodifications and variations will be apparent to those of ordinary skillin the art without departing from the scope and spirit of the describedembodiments. The terminology used herein was chosen to best explain theprinciples of the embodiments, the practical application or technicalimprovement over technologies found in the marketplace, or to enableothers of ordinary skill in the art to understand the embodimentsdescribed herein.

What is claimed is:
 1. A method comprising: receiving, at aninput/output (I/O) processor, a transport control word (TCW) thatincludes an instruction to perform physical port mirroring; identifying,by the I/O processor based on a mirror indicator field and a mirror typefield of the TCW, a first port to be mirrored and a second port toperform the mirroring, the second port a physical port on a host busadapter (HBA); in response to outbound data being sent to the first portfor transmission to a first target device and based the mirror indicatorfield specifying outbound port mirroring, sending, by the I/O processor,a copy of the outbound data to a second target device via the secondport; and in response to receiving inbound data at the first port andbased on the mirror indicator field specifying inbound port mirroring,transmitting a copy of the inbound data to the second target device viathe second port, wherein the mirror type field of the TCW indicates aspecific sub-type of mirroring for the I/O processor to perform.
 2. Themethod of claim 1, further comprising: receiving, by the I/O processor,an instruction to send the outbound data to the first target device;fetching, by the I/O processor, the outbound data from a memory; andsending, by the I/O processor, the outbound data to the first port. 3.The method of claim 1, further comprising: receiving, by the I/Oprocessor, the inbound data from the first port; and storing, by the I/Oprocessor, the inbound data into a memory.
 4. The method of claim 1,wherein the copy of the outbound data sent to the second target deviceis a subset of the outbound data.
 5. The method of claim 1, wherein thecopy of the inbound data sent to the second target device is a subset ofthe inbound data.
 6. The method of claim 1, wherein the instructioncauses port mirroring to be performed for a plurality of outbound datatransmissions on the first port.
 7. The method of claim 1, wherein theinstruction causes port mirroring to be performed for a single outbounddata transmission on the first port.
 8. A system comprising: one or moreprocessors for executing computer readable instructions, the computerreadable instructions controlling the one or more processors to performoperations comprising: receiving a transport control word (TCW) thatincludes an instruction to perform physical port mirroring; identifying,based on a mirror indicator field and a mirror type field of the TCW, afirst port to be mirrored and a second port to perform the mirroring,the second port a physical port on a host bus adapter (HBA); in responseto outbound data being sent to the first port for transmission to afirst target device and to the mirror indicator field specifyingoutbound port mirroring, sending a copy of the outbound data to a secondtarget device via the second port; and in response to receiving inbounddata at the first port and to the mirror indicator field specifyinginbound port mirroring, transmitting a copy of the inbound data to thesecond target device via the second port, wherein the mirror type fieldof the TCW indicates a specific sub-type of mirroring for the I/Oprocessor to perform.
 9. The system of claim 8, wherein the operationsfurther comprise: receiving, by the I/O processor, an instruction tosend the outbound data to the first target device; fetching, by the I/Oprocessor, the outbound data from a memory; and sending, by the I/Oprocessor, the outbound data to the first port.
 10. The system of claim8, wherein the operations further comprise: receiving, by the I/Oprocessor, the inbound data from the first port; and storing, by the I/Oprocessor, the inbound data into a memory.
 11. The system of claim 8,wherein the copy of the outbound data sent to the second target deviceis a subset of the outbound data.
 12. The system of claim 8, wherein thecopy of the inbound data sent to the second target device is a subset ofthe inbound data.
 13. The system of claim 8, wherein the instructioncauses port mirroring to be performed for a plurality of outbound datatransmissions on the first port.
 14. The system of claim 8, wherein theinstruction causes port mirroring to be performed for a single outbounddata transmission on the first port.
 15. A computer program productcomprising a computer readable storage medium having programinstructions embodied therewith, the program instructions executable byone or more processors to cause the one or more processors to performoperations comprising: receiving a transport control word (TCW) thatincludes an instruction to perform physical port mirroring; identifying,based on a mirror indicator field and a mirror type field of the TCW, afirst port to be mirrored and a second port to perform the mirroring,the second port a physical port on a host bus adapter (HBA); in responseto outbound data being sent to the first port for transmission to afirst target device and based on the mirror indicator field specifyingoutbound port mirroring, sending a copy of the outbound data to a secondtarget device via the second port; and in response to receiving inbounddata at the first port and based on the mirror indicator fieldspecifying inbound port mirroring, transmitting a copy of the inbounddata to the second target device via the second port, wherein the mirrortype field of the TCW indicates a specific sub-type of mirroring for theI/O processor to perform.
 16. The computer program product of claim 15,wherein the operations further comprise: receiving, by the I/Oprocessor, an instruction to send the outbound data to the first targetdevice; fetching, by the I/O processor, the outbound data from a memory;and sending, by the I/O processor, the outbound data to the first port.17. The computer program product of claim 15, wherein the operationsfurther comprise: receiving, by the I/O processor, the inbound data fromthe first port; and storing, by the I/O processor, the inbound data intoa memory.
 18. The computer program product of claim 15, wherein the copyof the outbound data sent to the second target device is a subset of theoutbound data.
 19. The computer program product of claim 15, wherein thecopy of the inbound data sent to the second target device is a subset ofthe inbound data.
 20. The computer program product of claim 15, whereinthe instruction causes port mirroring to be performed for a plurality ofoutbound data transmissions on the first port.